package construtor;

/**
 * 演员类
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-2-4
 */
public class Actor implements Actable {

	private Instrument sona;
	private Instrument erho;

	public void setSona(Instrument sona) {
		this.sona = sona;
	}

	public void setErho(Instrument erho) {
		this.erho = erho;
	}

	@Override
	public void act() {
		sona.play();
		erho.play();
	}

	public Actor(Instrument sona, Instrument erho) {
		this.sona = sona;
		this.erho = erho;
	}

	public Instrument getSona() {
		return sona;
	}

	public Instrument getErho() {
		return erho;
	}
}
